<template>
  <div class="ProjInfo_topRight">
    <div class="back">
      <div class="title">建设动态</div>
      <div class="content">
        <div class="contentAll">
          <li class="layui-timeline-item" v-for="(item, i) in dynamic" :key="i">
            <div class="layui-timeline-content layui-text">
              <p class="JSDT-content-text">{{ item.title }}</p>
              <div class="imgLine">
                <span
                  class="imgLineOne"
                  v-for="(item, i) in item.Attachs"
                  :key="i"
                  v-on:click="bigShowing(item)"
                >
                  <img :src="item.Url" />
                </span>
              </div>
            </div>
          </li>
        </div>
      </div>
    </div>
    <el-dialog
      :visible.sync="imgBigShow"
      class="imgBig"
      width="50%"
      top="55px"
    >
      <img :src="imgBigUrl" />
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: ['dynamic'],
  components: {},
  data () {
    return {
      imgBigShow: false,
      imgBigUrl: ''
    }
  },

  watch: {},

  created () {},

  mounted () {},

  methods: {
    bigShowing (item) {
      this.imgBigShow = true
      this.imgBigUrl = item.Url
    }
  }
}
</script>
<style lang="less" scoped>
.ProjInfo_topRight {
  width: 22%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: url("../../assets/projInfo/背景.png");
  background-size: 100% 100%;
  .back {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    .title {
      width: 100%;
      height: 30px;
      color: #fff;
      font-size: 20px;
      line-height: 30px;
      padding-left: 5px;
      background: url("../../assets/projInfo/上.png");
      background-size: 100% 100%;
    }
    .content {
      width: 100%;
      height: calc(100% - 30px);
      background: url("../../assets/projInfo/下.png");
      background-size: 100% 100%;
      .contentAll {
        width: calc(100% - 20px);
        height: calc(100% - 20px);
        margin: 10px;
        overflow-y: auto;
        list-style: none;
        .JSDT-content-text {
          text-align: justify;
          width: 97%;
          font-size: 15px;
          color: #07ffd7;
        }
        .imgLine {
          //margin-top: 1%;
          width: 100%;
          display: flex;
          //flex-direction: column;
          flex-wrap: wrap;
          .imgLineOne {
            width: 180px;
            height: 127px;
            margin-right: 3px;

            img {
              width: 172px;
              height: 110px;
              border: solid 1px #07ffd7;
              cursor: pointer;
            }
          }
        }
      }
      .contentAll::-webkit-scrollbar {
        display: none;
      }
    }
  }
  .imgBig {
    img {
      width: 100%;
      height: 600px;
      object-fit: fill;
    }
  }
}
</style>
